package cn.xiyun.xiyuncc.service.impl;

import cn.xiyun.xiyuncc.domain.Teacher;
import cn.xiyun.xiyuncc.mapper.TeacherMapper;
import cn.xiyun.xiyuncc.service.ITeacherService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 老师表 服务实现类
 * </p>
 *
 * @author xiyun.maple
 * @since 2023-03-11
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements ITeacherService {

    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public List<Teacher> courseTeacher(Long id) {
        List<Teacher> teachers = teacherMapper.courseTeacher(id);
        return teachers;
    }
}
